<%= form_for(@product) do |f| %>
  <% if @product.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:</h2>

      <ul>
      <% @product.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :manufacturer %><br />
    <%= f.text_field :manufacturer %>
  </div>

  <div class="field">
    <%= f.label :supplier %><br />
    <%= f.text_field :supplier %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  <div class="field">
    <%= f.label :size %><br />
    <%= f.text_field :size %>
  </div>
  <div class="field">
    <%= f.label :image %><br />
    <%= f.text_field :image %>
  </div>
  <div class="field">
    <%= f.label :price %><br />
    <%= number_field_tag 'product[price]', @product.price.to_s, :step=>0.01%>
  </div>
  <div class="field">
    <%= f.label :sale_price %><br />
      <%= number_field_tag 'product[sale_price]', @product.sale_price.to_s, :step=>0.01%>
  </div>
  <div class="field">
    <%= f.label :actual_price %><br />
      <%= number_field_tag 'product[actual_price]', @product.actual_price.to_s, :step=>0.01%>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>